package com.acdc.domain;

import java.util.List;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * OTA版本对象 ota_version_file
 * 
 * @author acdc
 * @date 2025-08-12
 */
public class OtaVersionFile extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 自增ID */
    private Long id;

    /** 版本文件 */
    @Excel(name = "版本文件")
    private String filePath;

    /** 创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date createdAt;

    /** 版本号 */
    @Excel(name = "版本号")
    private String version;

    /** OTA分割信息 */
    private List<OtaSplit> otaSplitList;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }

    public void setFilePath(String filePath) 
    {
        this.filePath = filePath;
    }

    public String getFilePath() 
    {
        return filePath;
    }

    public void setCreatedAt(Date createdAt) 
    {
        this.createdAt = createdAt;
    }

    public Date getCreatedAt() 
    {
        return createdAt;
    }

    public void setVersion(String version) 
    {
        this.version = version;
    }

    public String getVersion() 
    {
        return version;
    }

    public List<OtaSplit> getOtaSplitList()
    {
        return otaSplitList;
    }

    public void setOtaSplitList(List<OtaSplit> otaSplitList)
    {
        this.otaSplitList = otaSplitList;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("filePath", getFilePath())
            .append("createdAt", getCreatedAt())
            .append("version", getVersion())
            .append("otaSplitList", getOtaSplitList())
            .toString();
    }
}
